/**
 * 图表和表格选择
 */

import CustomizeRadio from "./index";

interface GraphOrTableProps {
  value: any; // 默认值
  labelClassName?: any;
  className?: any;
  label?: string;
  style?: any;
  setValue: any; // 返回值
}
const GraphOrTable = (props: GraphOrTableProps) => {
  const { label, value, className, labelClassName, style, setValue } = props;
  return (
    <CustomizeRadio
      options={[
        { label: "图表", value: "graph" },
        { label: "数据", value: "table" },
      ]}
      value={value}
      buttonWidth={80}
      setValue={setValue}
      label={label}
      className={className}
      labelClassName={labelClassName}
      style={style}
    />
  );
};
export default GraphOrTable;